import Vue from 'vue'
import Router from 'vue-router'

const Index = resolve => require(['../components/Index.vue'], resolve);
const MyBatis = resolve => require(['../components/mybaits/MyBatis.vue'], resolve);

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Index
    }, {
      path: '/mybatis',
      name: 'MyBatis',
      component: MyBatis
    },
  ]
})
